home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / PIIGSIncludes / Windows.p < prev   
Encoding:
Text File  |  1992-02-26  |  16.2 KB  |  438 lines  |  [TEXT/MPS ]

  1. {********************************************
  2. ; File: Windows.p
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc. 1986-92
  6. ; All Rights Reserved
  7. ;
  8. ********************************************}
  9.  
  10. UNIT WINDOWS;
  11. INTERFACE
  12. USES TYPES,QUICKDRAW,EVENTS,CONTROLS;
  13. CONST
  14.  
  15.  
  16. { Error Codes }
  17. paramLenErr = $0E01;  { first word of parameter list is the wrong size }
  18. allocateErr = $0E02;  { unable to allocate window record }
  19. taskMaskErr = $0E03;  { reserved bits are not clear in wmTaskMask }
  20.  
  21. { Axis Parameters }
  22. wNoConstraint = $0000;  { No constraint on movement. }
  23. wHAxisOnly = $0001;  { Horizontal axis only. }
  24. wVAxisOnly = $0002;  { Vertical axis only. }
  25.  
  26. { Desktop Command Codes }
  27. FromDesk = $00;  { Subtract region from desktop }
  28. ToDesk = $1;  { Add region to desktop }
  29. GetDesktop = $2;  { Get Handle of Desktop region }
  30. SetDesktop = $3;  { Set Handle of Desktop region }
  31. GetDeskPat = $4;  { Address of  pattern or drawing routine }
  32. SetDeskPat = $5;  { Change Address of  pattern or drawing routine }
  33. GetVisDesktop = $6;  { Get destop region less visible windows. }
  34. BackGroundRgn = $7;  { For drawing directly on desktop. }
  35. CheckForNewDeskMsg = $8; { force rechecking message #2 }
  36.  
  37. { SendBehind Values }
  38. toBottom = $FFFFFFFE;  { To send window to bottom. }
  39. topMost = $FFFFFFFF;  { To make window top. }
  40. bottomMost = $0000;  { To make window bottom. }
  41.  
  42. { Task Masks }
  43. tmMenuKey = $00000001;
  44. tmUpdate = $00000002;
  45. tmFindW = $00000004;
  46. tmMenuSel = $0008;
  47. tmOpenNDA = $0010;
  48. tmSysClick = $0020;
  49. tmDragW = $0040;
  50. tmContent = $0080;
  51. tmClose = $0100;
  52. tmZoom = $0200;
  53. tmGrow = $0400;
  54. tmScroll = $0800;
  55. tmSpecial = $1000;
  56. tmCRedraw = $2000;
  57. tmInactive = $4000;
  58. tmInfo = $8000;
  59. tmContentControls = $00010000;
  60. tmControlKey = $00020000;
  61. tmControlMenu = $00040000;
  62. tmMultiClick = $00080000;
  63. tmIdleEvents = $00100000;
  64.  
  65. { TaskMaster Codes }
  66. wNoHit = $0000;  { retained for back compatibility.  }
  67. inNull = $0000;  { retained for back compatibility }
  68. inKey = $0003;  { retained for back compatibility }
  69. inButtDwn = $0001;  { retained for back compatibility }
  70. inUpdate = $0006;  { retained for back compatibility }
  71. wInDesk = $0010;  { On Desktop }
  72. wInMenuBar = $0011;  { On system menu bar }
  73. wClickCalled = $0012;  { system click called }
  74. wInContent = $0013;  { In content region }
  75. wInDrag = $0014;  { In drag region }
  76. wInGrow = $0015;  { In grow region, active window only }
  77. wInGoAway = $0016;  { In go-away region, active window only }
  78. wInZoom = $0017;  { In zoom region, active window only }
  79. wInInfo = $0018;  { In information bar }
  80. wInSpecial = $0019;  { Item ID selected was 250 - 255 }
  81. wInDeskItem = $001A;  { Item ID selected was 1 - 249 }
  82. wInFrame = $1B;  { in Frame, but not on anything else }
  83. wInactMenu = $1C;  { 'selection' of inactive menu item }
  84. wClosedNDA = $001D;  { desk accessory closed }
  85. wCalledSysEdit = $001E;  { inactive menu item selected }
  86. wInSysWindow = $8000;  { hi bit set for system windows }
  87.  
  88. { VarCode }
  89. wDraw = $00;  { Draw window frame command. }
  90. wHit = $01;  { Hit test command. }
  91. wCalcRgns = $02;  { Compute regions command. }
  92. wNew = $03;  { Initialization command. }
  93. wDispose = $04;  { Dispose command. }
  94. wGetDrag = 5;        { Return address of outline drawing handler }
  95. wGrowFrame = 6;    { Draw outline of window being resized }
  96. wRecSize = 7;        { Return size of additional space neeed in the windrec }
  97. wPos = 8;            { Return RECT that is the window's portRect }
  98. wBehind = 9;        { Return where the window should be placed in the list }
  99. wCallDefProc = 10;    { Generic call to the defproc }
  100.  
  101. { WFrame }
  102. fHilited = $0001;  { Window is highlighted. }
  103. fZoomed = $0002;  { Window is zoomed. }
  104. fAllocated = $0004;  { Window record was allocated. }
  105. fCtlTie = $0008;  { Window state tied to controls. }
  106. fInfo = $0010;  { Window has an information bar. }
  107. fVis = $0020;  { Window is visible. }
  108. fQContent = $0040;
  109. fMove = $0080;  { Window is movable. }
  110. fZoom = $0100;  { Window is zoomable. }
  111. fFlex = $0200;
  112. fGrow = $0400;  { Window has grow box. }
  113. fBScroll = $0800;  { Window has horizontal scroll bar. }
  114. fRScroll = $1000;  { Window has vertical scroll bar. }
  115. fAlert = $2000;
  116. fClose = $4000;  { Window has a close box. }
  117. fTitle = $8000;  { Window has a title bar. }
  118.  
  119. { DoModalWindow flag values }
  120. mwMovable = $8000;
  121. mwUpdateAll = $4000;
  122. mwDeskAcc = $0010;
  123. mwIBeam = $0008;
  124. mwMenuKey = $0004;
  125. mwMenuSelect = $0002;
  126. mwNoScrapForLE = $0001;
  127.  
  128. { HandleDiskInsert flag values (bit flags) }
  129. hdiScan = $8000;
  130. hdiHandle = $4000;
  131. hdiUpdate = $2000;
  132. hdiReportEjects = $1000;
  133. hdiNoDelay = $0800;
  134. hdiDupDisk = $0400;
  135. hdiCheckTapeDrives = $0200;
  136. hdiUnreadable = $0100;
  137. hdiMarkOffline = $0001;
  138.  
  139. { HandleDiskInsert result flag values (bit flags) }
  140. hdiFormatted = $0002;
  141. hdiEjection = $0001;
  142.  
  143. { constants for AlertWindow alertFlags }
  144. awCString = $0000;
  145. awPString = $0001;
  146. awPointer = $0000;
  147. awHandle = $0002;
  148. awResource = $0004;
  149. awTextFullWidth = $0008;
  150. awForceBeep = $0010;
  151. awButtonLayout = $0020;
  152. awNoDevScan = $0040;
  153. awNoDisposeRes = $0080;
  154. awWatchForDisk = $0100;
  155. awIconIsResource = $0200;
  156. awFullColor = $0400;
  157.  
  158. { Other Constants }
  159. windSize = $00D4;  { Size of WindRec. }
  160. wmTaskRecSize = $002E;  { Size of WmTaskRec. }
  161. wTrackZoom = $001F;
  162. wHitFrame = $0020;
  163. wInControl = $0021;
  164. wInControlMenu = $0022;
  165.  
  166. { custom defproc dRequest codes (from TN #42) }
  167. wSetOrgMask = 0;
  168. wSetMaxGrow = 1;
  169. wSetScroll = 2;
  170. wSetPage = 3;
  171. wSetInfoRefCon = 4;
  172. wSetInfoDraw = 5;
  173. wSetOrigin = 6;
  174. wSetDataSize = 7;
  175. wSetZoomRect = 8;
  176. wSetTitle = 9;
  177. wSetColorTable = 10;
  178. wSetFrameFlag = 11;
  179. wGetOrgMask = 12;
  180. wGetMaxGrow = 13;
  181. wGetScroll = 14;
  182. wGetPage = 15;
  183. wGetInfoRefCon = 16;
  184. wGetInfoDraw = 17;
  185. wGetOrigin = 18;
  186. wGetDataSize = 19;
  187. wGetZoomRect = 20;
  188. wGetTitle = 21;
  189. wGetColorTable = 22;
  190. wGetFrameFlag = 23;
  191. wGetInfoRect = 24;
  192. wGetDrawInfo = 25;
  193. wGetStartInfoDraw = 26;
  194. wGetEndInfoDraw = 27;
  195. wZoomWindow = 28;
  196. wStartDrawing = 29;
  197. wStartMove = 30;
  198. wStartGrow = 31;
  199. wNewSize = 32;
  200. wTask = 33;
  201.  
  202. TYPE
  203. WmTaskRec = EventRecord ;
  204.  
  205.  
  206. WmTaskRecPtr = EventRecordPtr ;
  207.  
  208. WindColorHndl = ^WindColorPtr;
  209. WindColorPtr = ^WindColor;
  210. WindColor = RECORD
  211.     frameColor : Integer; { Color of window frame. }
  212.     titleColor : Integer; { Color of title and bar. }
  213.     tBarColor : Integer; { Color/pattern of title bar. }
  214.     growColor : Integer; { Color of grow box. }
  215.     infoColor : Integer; { Color of information bar. }
  216. END;
  217. WindRecPtr = ^WindRec;
  218. WindRec = RECORD
  219.     { wNext : WindRecPtr; Not part of record returned by Toolbox calls }
  220.     port : GrafPort; { Window's port }
  221.     wDefProc : ProcPtr;
  222.     wRefCon : Longint;
  223.     wContDraw : ProcPtr;
  224.     wReserved : Longint; { Space for future expansion }
  225.     wStrucRgn : RegionHndl; { Region of frame plus content. }
  226.     wContRgn : RegionHndl; { Content region. }
  227.     wUpdateRgn : RegionHndl; { Update region. }
  228.     wControls : CtlRecHndl; { Window's control list. }
  229.     wFrameCtrls : CtlRecHndl; { Window frame's control list. }
  230.     wFrame : Integer;
  231. END;
  232. ParamListHndl = ^ParamListPtr;
  233. ParamListPtr = ^ParamList;
  234. ParamList = RECORD
  235.     paramLength : Integer; { Parameter to NewWindow.  }
  236.     wFrameBits : Integer; { Parameter to NewWindow. }
  237.     wTitle : Ptr; { Parameter to NewWindow. }
  238.     wRefCon : Longint; { Parameter to NewWindow. }
  239.     wZoom : Rect; { Parameter to NewWindow. }
  240.     wColor : WindColorPtr; { Parameter to NewWindow. }
  241.     wYOrigin : Integer; { Parameter to NewWindow. }
  242.     wXOrigin : Integer; { Parameter to NewWindow. }
  243.     wDataH : Integer; { Parameter to NewWindow. }
  244.     wDataW : Integer; { Parameter to NewWindow. }
  245.     wMaxH : Integer; { Parameter to NewWindow. }
  246.     wMaxW : Integer; { Parameter to NewWindow. }
  247.     wScrollVer : Integer; { Parameter to NewWindow. }
  248.     wScrollHor : Integer; { Parameter to NewWindow. }
  249.     wPageVer : Integer; { Parameter to NewWindow. }
  250.     wPageHor : Integer; { Parameter to NewWindow. }
  251.     wInfoRefCon : Longint; { Parameter to NewWindow. }
  252.     wInfoHeight : Integer; { height of information bar }
  253.     wFrameDefProc : LongProcPtr; { Parameter to NewWindow. }
  254.     wInfoDefProc : VoidProcPtr; { Parameter to NewWindow. }
  255.     wContDefProc : VoidProcPtr; { Parameter to NewWindow. }
  256.     wPosition : Rect; { Parameter to NewWindow. }
  257.     wPlane : WindowPtr; { Parameter to NewWindow. }
  258.     wStorage : WindRecPtr; { Parameter to NewWindow. }
  259. END;
  260.  
  261. WindParam1Hndl = ^WindParam1Ptr;
  262. WindParam1Ptr = ^WindParam1;
  263. WindParam1 = RECORD
  264.     p1Length : Integer;
  265.     p1Frame : Integer;
  266.     p1Title : Ptr;
  267.     p1RefCon : Longint;
  268.     p1ZoomRect : Rect;
  269.     p1ColorTable : WindColorPtr;
  270.     p1YOrigin : Integer;
  271.     p1XOrigin : Integer;
  272.     p1DataHeight : Integer;
  273.     p1DataWidth : Integer;
  274.     p1MaxHeight : Integer;
  275.     p1MaxWidth : Integer;
  276.     p1VerScroll : Integer;
  277.     p1HorScroll : Integer;
  278.     p1VerPage : Integer;
  279.     p1HorPage : Integer;
  280.     p1InfoText : Longint;
  281.     p1InfoHeight : Integer;
  282.     p1DefProc : LongProcPtr;
  283.     p1InfoDraw : VoidProcPtr;
  284.     p1ContentDraw : VoidProcPtr;
  285.     p1Position : Rect;
  286.     p1Plane : WindowPtr;
  287.     p1ControlList : Longint;
  288.     p1InDesc : Integer;
  289. END;
  290.  
  291. DeskMessageRecordPtr = ^DeskMessageRecord;
  292. DeskMessageRecord = RECORD
  293.     reserved : Longint;
  294.     messageType : Integer;
  295.     drawType : Integer;
  296. END;
  297.  
  298. AuxWindInfoPtr = ^AuxWindInfoRecord;
  299. AuxWindInfoRecord = RECORD
  300.     recordSize: integer;
  301.         reservedForBank: integer;
  302.         reservedForDP: integer;
  303.         reservedForResApp: integer;
  304.         reservedForUpdateHandle: longint;
  305.         reservedForEndUpdatePort: longint;
  306.         reservedForWindoidLayer: longint;
  307.         sysWindMinHeight: integer;
  308.         sysWindMinWidth: integer;
  309.         NDASysWindPtr: ptr;
  310. END;
  311.  
  312. WindGlobalsRecHndl = ^WindGlobalsRecPtr;
  313. WindGlobalsRecPtr = ^WindGlobalsRec;
  314. WindGlobalsRec = RECORD
  315.     lineW : Integer;
  316.     titleHeight : Integer;
  317.     titleYPos : Integer;
  318.     closeHeight : Integer;
  319.     closeWidth : Integer;
  320.     defWindClr : Longint;
  321.     windIconFont : Longint;
  322.     screenMode : Integer;
  323.     pattern : Array [1..32] of Byte;
  324.     callerDPage : Integer;
  325.     callerDataB : Integer;
  326. End;
  327.  
  328. FUNCTION AlertWindow ( alertFlags:Integer; subStrPtr:Ptr; alertStrRef:Ref) : Integer ;
  329. PROCEDURE BeginUpdate ( theWindowPtr:WindowPtr);
  330. PROCEDURE BringToFront ( theWindowPtr:WindowPtr);
  331. FUNCTION CheckUpdate ( theEventPtr:EventRecordPtr) : Boolean;
  332. PROCEDURE CloseWindow ( theWindowPtr:WindowPtr);
  333. FUNCTION CompileText ( subType:Integer; subStringsPtr:Ptr; srcStringPtr:Ptr; srcSize:Integer) : Handle ;
  334. FUNCTION Desktop ( deskTopOP:Integer; dtParam:Longint) : Ptr;
  335. PROCEDURE DragWindow ( grid:Integer; startX:Integer; startY:Integer; grace:Integer; boundsRectPtr:RectPtr; theWindowPtr:WindowPtr)  ;
  336. PROCEDURE DrawInfoBar ( theWindowPtr:WindowPtr);
  337. PROCEDURE EndFrameDrawing;
  338. PROCEDURE EndInfoDrawing;
  339. PROCEDURE EndUpdate ( theWindowPtr:WindowPtr);
  340. FUNCTION ErrorWindow ( subType:Integer; subStringPtr:Ptr; errNum:Integer) : Integer;
  341. FUNCTION FindWindow (VAR theWindowPtr:WindowPtr; pointX:Integer; pointY:Integer) : Integer;
  342. FUNCTION FrontWindow  : WindowPtr;
  343. PROCEDURE GDRPrivate;
  344. FUNCTION GetContentDraw ( theWindowPtr:WindowPtr) : VoidProcPtr;
  345. FUNCTION GetContentOrigin ( theWindowPtr:WindowPtr) : Point;
  346. FUNCTION  GetContentRgn ( theWindowPtr:WindowPtr) : RegionHndl;
  347. FUNCTION GetDataSize ( theWindowPtr:WindowPtr) : Longint;
  348. FUNCTION GetDefProc ( theWindowPtr:WindowPtr) : LongProcPtr;
  349. FUNCTION GetFirstWindow  : WindowPtr;
  350. PROCEDURE GetFrameColor (VAR colorPtr:WindColor; theWindowPtr:WindowPtr);
  351. FUNCTION GetInfoDraw ( theWindowPtr:WindowPtr) : VoidProcPtr;
  352. FUNCTION GetInfoRefCon ( theWindowPtr:WindowPtr) : Longint;
  353. FUNCTION GetMaxGrow ( theWindowPtr:WindowPtr) : Longint;
  354. FUNCTION GetNextWindow ( theWindowPtr:WindowPtr) : WindowPtr;
  355. FUNCTION GetPage ( theWindowPtr:WindowPtr) : Longint;
  356. PROCEDURE GetRectInfo (VAR infoRectPtr:Rect; theWindowPtr:WindowPtr);
  357. FUNCTION GetScroll ( theWindowPtr:WindowPtr) : Longint;
  358. FUNCTION  GetStructRgn ( theWindowPtr:WindowPtr) : RegionHndl;
  359. FUNCTION GetSysWFlag ( theWindowPtr:WindowPtr) : Boolean;
  360. FUNCTION  GetUpdateRgn ( theWindowPtr:WindowPtr) : RegionHndl;
  361. FUNCTION GetWControls ( theWindowPtr:WindowPtr) : CtlRecHndl;
  362. FUNCTION GetWFrame ( theWindowPtr:WindowPtr) : Integer;
  363. FUNCTION GetWKind ( theWindowPtr:WindowPtr) : Integer;
  364. FUNCTION GetWMgrPort  : WindowPtr;
  365. FUNCTION GetWRefCon ( theWindowPtr:WindowPtr) : Longint ;
  366. FUNCTION GetWTitle ( theWindowPtr:WindowPtr) : Ptr ;
  367. FUNCTION GetWindowMgrGlobals  : Ptr ;
  368. FUNCTION GetZoomRect ( theWindowPtr:WindowPtr) : RectPtr ;
  369. FUNCTION GrowWindow ( minWidth:Integer; minHeight:Integer; startX:Integer; startY:Integer; theWindowPtr:WindowPtr) : Longint ;
  370. PROCEDURE HideWindow ( theWindowPtr:WindowPtr)  ;
  371. PROCEDURE HiliteWindow ( fHiliteFlag:Boolean; theWindowPtr:WindowPtr)  ;
  372. PROCEDURE InvalRect ( badRectPtr:Rect)  ;
  373. PROCEDURE InvalRgn ( badRgnHandle:RegionHndl)  ;
  374. PROCEDURE MoveWindow ( newX:Integer; newY:Integer; theWindowPtr:WindowPtr)  ;
  375. FUNCTION NewWindow ( theParamListPtr:ParamList) : WindowPtr ;
  376. FUNCTION NewWindow2 ( titlePtr:StringPtr; refCon:Longint; contentDrawPtr:ProcPtr; defProcPtr:ProcPtr; paramTableDesc:RefDescriptor; paramTableRef:Ref; resourceType:Integer) : WindowPtr ;
  377. FUNCTION PinRect ( theXPt:Integer; theYPt:Integer; theRectPtr:Rect) : Point ;
  378. PROCEDURE RefreshDesktop ( redrawRect:RectPtr)  ;
  379. PROCEDURE ResizeWindow ( hiddenFlag:Boolean; newRectPtr:Rect; theWindowPtr:WindowPtr)  ;
  380. PROCEDURE SelectWindow ( theWindowPtr:WindowPtr)  ;
  381. PROCEDURE SendBehind ( behindWindowPtr:WindowPtr; theWindowPtr:WindowPtr)  ;
  382. PROCEDURE SetContentDraw ( contentDrawPtr:VoidProcPtr; theWindowPtr:WindowPtr)  ;
  383. PROCEDURE SetContentOrigin ( xOrigin:Integer; yOrigin:Integer; theWindowPtr:WindowPtr)  ;
  384. PROCEDURE SetContentOrigin2 ( scrollFlag:Integer; xOrigin:Integer; yOrigin:Integer; theWindowPtr:WindowPtr)  ;
  385. PROCEDURE SetDataSize ( dataWidth:Integer; dataHeight:Integer; theWindowPtr:WindowPtr)  ;
  386. PROCEDURE SetDefProc ( wDefProcPtr:LongProcPtr; theWindowPtr:WindowPtr)  ;
  387. PROCEDURE SetFrameColor ( newColorPtr:WindColorPtr; theWindowPtr:WindowPtr)  ;
  388. PROCEDURE SetInfoDraw ( infoRecCon:VoidProcPtr; theWindowPtr:WindowPtr)  ;
  389. PROCEDURE SetInfoRefCon ( infoRefCon:Longint; theWindowPtr:WindowPtr)  ;
  390. PROCEDURE SetMaxGrow ( maxWidth:Integer; maxHeight:Integer; theWindowPtr:WindowPtr)  ;
  391. PROCEDURE SetOriginMask ( originMask:Integer; theWindowPtr:WindowPtr)  ;
  392. PROCEDURE SetPage ( hPage:Integer; vPage:Integer; theWindowPtr:WindowPtr)  ;
  393. PROCEDURE SetScroll ( hScroll:Integer; vScroll:Integer; theWindowPtr:WindowPtr)  ;
  394. PROCEDURE SetSysWindow ( theWindowPtr:WindowPtr)  ;
  395. PROCEDURE SetWFrame ( wFrame:Integer; theWindowPtr:WindowPtr)  ;
  396. PROCEDURE SetWRefCon ( wRefCon:Longint; theWindowPtr:WindowPtr)  ;
  397. PROCEDURE SetWTitle ( title:Str255; theWindowPtr:WindowPtr)  ;
  398. FUNCTION SetWindowIcons ( newFontHandle:FontHndl) : FontHndl ;
  399. PROCEDURE SetZoomRect ( wZoomSizePtr:Rect; theWindowPtr:WindowPtr)  ;
  400. PROCEDURE ShowHide ( showFlag:Boolean; theWindowPtr:WindowPtr)  ;
  401. PROCEDURE ShowWindow ( theWindowPtr:WindowPtr)  ;
  402. PROCEDURE SizeWindow ( newWidth:Integer; newHeight:Integer; theWindowPtr:WindowPtr)  ;
  403. PROCEDURE StartDrawing ( theWindowPtr:WindowPtr)  ;
  404. PROCEDURE StartFrameDrawing ( theWindowPtr:WindowPtr)  ;
  405. PROCEDURE StartInfoDrawing (VAR infoRectPtr:Rect; theWindowPtr:WindowPtr)  ;
  406. FUNCTION TaskMaster ( taskMask:Integer; taskRecPtr:WmTaskRec) : Integer ;
  407. PROCEDURE TaskMasterContent   ;
  408. FUNCTION TaskMasterDA ( eventMask:Integer; taskRecPtr:WmTaskRecPtr) : Integer ;
  409. PROCEDURE TaskMasterKey   ;
  410. FUNCTION TrackGoAway ( startX:Integer; startY:Integer; theWindowPtr:WindowPtr) : Boolean ;
  411. FUNCTION TrackZoom ( startX:Integer; startY:Integer; theWindowPtr:WindowPtr) : Boolean ;
  412. PROCEDURE ValidRect ( goodRectPtr:Rect)  ;
  413. PROCEDURE ValidRgn ( goodRgnHandle:RegionHndl)  ;
  414. PROCEDURE WindBootInit   ;
  415. FUNCTION WindDragRect ( actionProcPtr:VoidProcPtr; dragPatternPtr:Pattern; startX:Integer; startY:Integer; dragRectPtr:Rect; limitRectPtr:Rect; slopRectPtr:Rect; dragFlag:Integer) : Longint ;
  416. PROCEDURE WindNewRes   ;
  417. PROCEDURE WindReset   ;
  418. PROCEDURE WindShutDown   ;
  419. PROCEDURE WindStartUp ( userID:Integer)  ;
  420. FUNCTION WindStatus  : Boolean ;
  421. FUNCTION WindVersion  : Integer ;
  422. FUNCTION WindowGlobal ( WindowGlobalMask:Integer) : Integer ;
  423. PROCEDURE ZoomWindow ( theWindowPtr:WindowPtr)  ;
  424.  
  425. FUNCTION GetAuxWindInfo(w: WindowPtr): AuxWindInfoPtr;
  426. FUNCTION DoModalWindow(var event:wmTaskRec; updateProc:VoidProcPtr; evHook:VoidProcPtr;
  427.                        beepProc:VoidProcPtr; flags:integer): longint;
  428. FUNCTION MWGetCtlPart: integer;
  429. FUNCTION SetMenuProc(newProc:VoidProcPtr):VoidProcPtr;
  430. PROCEDURE MWStdDrawProc;
  431. PROCEDURE MWSetUpEditMenu;
  432. FUNCTION FindCursorCtl(var foundCtl:CtlRecHndl; x, y:integer; theWindow:WindowPtr): integer;
  433. PROCEDURE ResizeInfoBar(flags:integer; newHeight:integer; theWindow:WindowPtr);
  434. FUNCTION HandleDiskInsert(flags, devNum:integer): longint;
  435.  
  436. IMPLEMENTATION
  437. END.
  438.